package com.mit.wx.wx.dto;

import com.mit.wx.util.xml.CDataConverter;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;


@EqualsAndHashCode(callSuper = true)
@Data
@XStreamAlias("xml")
public class TargetMusicMessage extends TargetMessage {
    @XStreamAlias("Music")
    private Music music;
}

@Data
class Music {
    @XStreamConverter(CDataConverter.class)
    @XStreamAlias("ThumbMediaId")
    private String thumbMediaId;
    @XStreamAlias("Title")
    private String title;
    @XStreamAlias("Description")
    private String description;
    @XStreamAlias("MusicUrl")
    private String musicUrl;
    @XStreamAlias("HQMusicUrl")
    private String hQMusicUrl;
}
